#define PATH "clientFile"
typedef struct train_s{
    int dataLength;
    char buf[1000];
}train_t;
int isLegalUser(int sockFd, char *userName);
int userRegister(int sockFd, char *token, int fd);
int recvFile(char *argv, int sockFd);
int recvn(int netFd, void *p, int n);
int upload(char *argv,int sockFd);
int cd(int sockFd);
int ls(int sockFd);
int pwd(int sockFd);
int removeFile(int sockFd);
int makedir(int sockFd);
int removedir(int sockFd);

/*tools*/
int sendUserPassWord(char *password, int sockFd);